package com.sec.android.app.myfiles.feature.Hover;

import android.content.Context;
import android.widget.ImageView;

import com.sec.android.app.myfiles.R;
import com.sec.android.app.myfiles.fragment.AbsMyFilesFragment;
import com.sec.android.app.myfiles.info.MediaFile;
import com.sec.android.app.myfiles.module.abstraction.FileRecord;

/**
 * Created by daelight.kim on 2016-05-23.
 */
public class DocumentHoverView extends AbsHoverView{

    public DocumentHoverView(Context context, FileRecord record, AbsMyFilesFragment fragment) {
        super(context, record, fragment);
    }

    @Override
    protected int getLayoutId() {
        return R.layout.hover_document_view;
    }

    @Override
    protected void initView() {
        ImageView previewThumbnail = (ImageView) mHoverView.findViewById(R.id.airview_preview_document);
        previewThumbnail.setImageResource(MediaFile.getIcon(mContext, mRecord));
    }

    @Override
    protected void onClose() {

    }
}
